public class Costs {
	private double roomFee = 0.0;
	private double tipAndTax = 0.0;
	private double depositSum = 0.0;
	private Meals meal;
	private ChildMeals cmeal;
	
	public Costs(double adultMealCost, double dessertCost, int numAdults, int numChildren, double rFee, double tipTax, double depositSum) {
		meal = new Meals(numAdults, adultMealCost, dessertCost);
		cmeal = new ChildMeals(numChildren, adultMealCost, dessertCost);
		tipAndTax = tipTax;
		roomFee = rFee;
		this.depositSum = depositSum;
	}
	public double getRoomFee() {
		return roomFee;
	}
	public void setRoomFee(double roomFee) {
		this.roomFee = roomFee;
	}
	public double getTipAndTax() {
		return tipAndTax;
	}
	public void setTipAndTax(double tipAndTax) {
		this.tipAndTax = tipAndTax;
	}
	public double getDepositSum() {
		return depositSum;
	}
	public void setDepositSum(double depositSum) {
		this.depositSum = depositSum;
	}
	public double getFoodCost() {
		return (meal.getTotal() + cmeal.getTotal());
	}
	
	public double getFoodCostWithTipTax() {
		return ((getFoodCost() * (1+(tipAndTax / 100))));
	}
	
	public double getTotalCostWithRoomFee() {
		return ((getFoodCost() * (1+(tipAndTax / 100))+ roomFee));
	}
	
	public double getFinalCost() {
		return getTotalCostWithRoomFee() - depositSum; 
	}
	
	public double getAdultCost() {
		return meal.getTotalNoDessert();
	}
	
	public double getChildCost() {
		return cmeal.getTotalNoDessert();
	}
}
